package com.model.vo.sys.sysOperLog;

import lombok.Data;
import io.swagger.annotations.ApiModelProperty;

@Data
public class ErrorSysOperLogVO {
    @ApiModelProperty(value = "ID,自动递增",required = true)
    private Long sysOperLogId;
    @ApiModelProperty(value = "模块标题",required = true)
    private String title;
    @ApiModelProperty(value = "0:其他,1:新增,2:修改信息,3:修改数据状态,4:授权,5:导出,6:导入,7:强退,8:生成代码,9:清空状态,10:查询数据",allowableValues = "0,1,2,3,4,5,6,7,8,9,10",required = true)
    private Byte businessType;
    @ApiModelProperty(value = "方法名称",required = true)
    private String method;
    @ApiModelProperty(value = "请求方式",required = true)
    private String requestMethod;
    @ApiModelProperty(value = "操作人员",required = true)
    private String userName;
    @ApiModelProperty(value = "0：员工 1：会员 2：游客",allowableValues = "0",required = true)
    private Byte userType;
    @ApiModelProperty(value = "浏览器类型",required = true)
    private String browser;
    @ApiModelProperty(value = "操作系统",required = true)
    private String os;
    @ApiModelProperty(value = "请求URL",required = true)
    private String operUrl;
    @ApiModelProperty(value = "主机地址",required = true)
    private String operIp;
    @ApiModelProperty(value = "操作地点",required = true)
    private String operLocation;
    @ApiModelProperty(value = "请求参数",required = true)
    private String operParam;
    @ApiModelProperty(value = "返回参数",required = true)
    private String jsonResult;
    @ApiModelProperty(value = "0:正常,1:异常",allowableValues = "0,1",required = true)
    private Byte status;
    @ApiModelProperty(value = "错误消息",required = true)
    private String errorMsg;
    @ApiModelProperty(value = "错误描述",required = true)
    private String errMsg;

    public ErrorSysOperLogVO errMsg(String errMsg){
        this.errMsg = errMsg;
        return this;
    }
}
